package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"yzy4.15work/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/list", &controllers.GoodController{}, "GET:List;OPTIONS:List")
	beego.Router("/update", &controllers.GoodController{}, "POST:Update;OPTIONS:Update")
	beego.Router("/del", &controllers.GoodController{}, "POST:Del;OPTIONS:Del")
}
